// 导入模块
import { Sequelize } from "sequelize";
import { dbUserName, dbPassWord, host, port } from "../config/setting.js";

// 创建并导出一个 Sequelize 实例
export const sequelize = new Sequelize("test", dbUserName, dbPassWord, {
  host: host,
  port: port,
  // 使用的数据库
  dialect: "mysql",
});
